home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / sphigs / sph_dos.lha / dos / sphsrc.v08 / macros.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-26  |  399 b   |  12 lines

  1. #define MALLOCARGTYPE size_t
  2.  
  3. #define ALLOC_RECORDS(PTR,TYPE,NUM) \
  4.   if ((PTR = (TYPE*) malloc((MALLOCARGTYPE)((NUM)*sizeof(TYPE)))) == NULL) \
  5.      REPORT_ERROR(ERR_MALLOC); else
  6.  
  7.  
  8. #define bzero(PTR,NUMBYTES)  memset(PTR,0,(size_t)NUMBYTES)
  9. #define bcopy(SRC,DEST,NUMBYTES)  memcpy(DEST,SRC,(size_t)NUMBYTES)
  10. #define bcmp(B1,B2,NUMBYTES)      memcmp(B1,B2,(size_t)NUMBYTES)
  11. #define irint /*nothing*/
  12.